package com.usian.jyzx.product.service.impl;

import com.usian.jyzx.model.entity.user.UserInfo;
import com.usian.jyzx.product.mapper.UserInfoMapper;
import com.usian.jyzx.product.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 07 09 14 09
 **/
@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    UserInfoMapper userInfoMapper;
    @Override
    public UserInfo findUserInfoByPhoneNumber(String phoneNumber) {
        return userInfoMapper.findUserInfoByPhoneNumber(phoneNumber);
    }

    @Override
    public int saveUserInfo(UserInfo userInfo) {
        return userInfoMapper.saveUserInfo(userInfo);
    }

    @Override
    public UserInfo findUserInfoByUsername(String username) {
        return userInfoMapper.findUserInfoByUsername(username);
    }
}
